//------------------------------------------------------------------------------
// <copyright file="Dialogs.cs" company="Damian Antonowicz">
//       copyright © 2010 Damian Antonowicz
// </copyright>
// <author>Damian Antonowicz</author>
// <email>poczta@damianantonowicz.pl</email>
//------------------------------------------------------------------------------

using Microsoft.Win32;

namespace DotBeer.UI.WPFClient
{
    public static class Dialogs
    {
        public static string OpenImageFileDialog()
        {
            OpenFileDialog fileDialog = new OpenFileDialog();
            fileDialog.Filter = "Image Files (.jpg, .jpeg, .gif, .png)|*.jpg; *.jpeg; *.gif; *.png|All Files (*.*)|*.*";

            if (fileDialog.ShowDialog() == true)
                return fileDialog.FileName;

            return null;
        }
    }
}
